<?php
/**
 * @file WCParserBehaviorIGNORE.php
 * @author Alejandro Dario Simi
 * @date $Date: 2013-01-07 04:53:44 +0000 (Mon, 07 Jan 2013) $
 *
 * $Id: WCParserBehaviorIGNORE.php 50 2013-01-07 04:53:44Z daemonraco@gmail.com $
 * $URL: http://wcomix.googlecode.com/svn/tags/wcomix-1.0-BETA2/includes/parser/WCParserBehaviorIGNORE.php $
 */

require_once dirname(__FILE__)."/WCParserBehavior.php";

$WCParserBehaviorMatrix["IGNORE"]	= "WCParserBehaviorIGNORE";
$WCParserBehaviorMatrix["!"]		= "WCParserBehaviorIGNORE";

class WCParserBehaviorIGNORE extends WCParserBehavior {
	//
	// Public methods.
	public function check() {
		if($this->_node) {
			$this->_ok = true;
			$this->_errorMsg = "Ok";
		} else {
			$this->_errorMsg = "IGNORE node is not set";
			$this->_ok = false;
		}

		return $this->isOk();
	}
	public function get() {
		$out = false;
			
		if($this->isOk()) {
			$out = "";
		}

		return $out;
	}

	//
	// Protected methods.
	protected function init() {
	}
}

?>